package com.gopay.common.cps.service.fund.impl;

import com.gopay.common.cps.dao.fund.BindCardInfoDAO;
import com.gopay.common.cps.service.fund.BindCardInfoService;
import com.gopay.common.domain.fund.FundGopayBankcardInfoEntity;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author baiyunpeng
 * @2016年7月14日 下午3:36:05  www.gopay.com.cn Inc.All rights reserved.
 */
@Service(value = "bindCardInfoService")
public class BindCardInfoServiceImpl implements BindCardInfoService {
    @Resource(name = "bindCardInfoDAO")
    private BindCardInfoDAO bindCardInfoDAO;
    @Override
    public FundGopayBankcardInfoEntity save(FundGopayBankcardInfoEntity fundGopayBankcardInfoEntity) {
        return bindCardInfoDAO.save(fundGopayBankcardInfoEntity);
    }
    @Override
    public FundGopayBankcardInfoEntity findByCriteria(String agentSignNo) {
        return bindCardInfoDAO.findByCriteria(agentSignNo,"1");
    }

}
